import {IdCreator} from "@/utils/idCreator";

export class FieldConfig {
  id;
  type;
  config;

  constructor(type, config) {
    this.id = IdCreator.randomId();
    this.type = type;
    this.config = config;
  }
}

export class BaseConfig {
  title = "";
  required = false;
  optionList = [];
}

export class OptionItem {
  id;
  label;
  constructor(label) {
    this.id = IdCreator.randomId();
    this.label = label;
  }
}

export class BaseStorage {
  value;
  fieldId;
  type;
  items = [];
}

